package com.xyw.code.gateway.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xyw.code.gateway.common.entity.po.GatewayRoute;

/**
 * <p>
 * 网关路由表 服务类
 * </p>
 *
 * @author xyw
 * @since 2020-01-31
 */
public interface IGatewayRouteService extends IService<GatewayRoute>{

    /**
     * 重新加载网关路由配置到redis
     *
     * @return 成功返回true
     */
    boolean overload();

    boolean add(GatewayRoute gatewayRout);

    boolean update(GatewayRoute gatewayRoute);

    boolean delete(String id);

    GatewayRoute get(String id);
}
